package com.itheima.project.hystrix;

import com.itheima.project.basic.ResponseWrap;
import com.itheima.project.core.enums.dict.PlacesEnum;
import com.itheima.project.feign.PlacesFeign;
import com.itheima.project.utils.ResponseWrapBuild;
import com.itheima.project.vo.dict.PlacesVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName PlacesHystrix.java
 * @Description PlacesFeign的Hystrix
 */
@Component
public class PlacesHystrix implements PlacesFeign {

    @Override
    public ResponseWrap<List<PlacesVo>> findPlacesVoListByParentId(Long parentId) {
        return ResponseWrapBuild.build(PlacesEnum.LIST_FAIL,null);
    }
}
